﻿<Page x:Class="Resn.WhuPub.WPFClientUI.ContactBusinessPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      Style="{StaticResource PageStyle}" Loaded="Page_Loaded" Background="Black">
        <Grid x:Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                </Grid.RowDefinitions>

                <Grid>
                        <TextBlock Text="联系人信息"  Style="{StaticResource BigTextBlockStyle}" />
                </Grid>

                <Grid Grid.Row="2">
                        <Border Grid.Column="0" Grid.Row="1" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">

                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" MinWidth="60"/>
                                                <ColumnDefinition Width="Auto" MinWidth="280" />
                                                <ColumnDefinition Width="Auto" MinWidth="60"/>
                                                <ColumnDefinition Width="Auto" MinWidth="280" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="{Binding LoginContact.Name}" />

                                        <TextBlock Grid.Column="1" Grid.Row="1" 
                                           HorizontalAlignment="Right"
                                           Text="类型" />
                                        <TextBlock Grid.Column="2" Grid.Row="1" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding LoginContact.Level}" />

                                        <TextBlock Grid.Column="3" Grid.Row="1" 
                                           HorizontalAlignment="Right"
                                           Text="状态" />
                                        <TextBlock Grid.Column="4" Grid.Row="1" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding LoginContact.State}" />

                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="电话" />
                                        <TextBlock Grid.Column="2" Grid.Row="2" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding LoginContact.Telephone}" />

                                        <TextBlock Grid.Column="3" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="QQ" />
                                        <TextBlock Grid.Column="4" Grid.Row="2" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding LoginContact.QQ}" />

                                        <TextBlock Grid.Column="1" Grid.Row="3" 
                                           HorizontalAlignment="Right"
                                           Text="邮箱" />
                                        <TextBlock Grid.Column="2" Grid.Row="3" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding LoginContact.Email}" />

                                        <TextBlock Grid.Column="1" Grid.Row="4" 
                                           HorizontalAlignment="Right"
                                           Text="权限" />
                                        <TextBlock Grid.Column="2" Grid.Row="4" Grid.ColumnSpan="3" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding LoginContact.Access}" />

                                        <TextBlock Grid.Column="1" Grid.Row="5" 
                                           HorizontalAlignment="Right"
                                           Text="备注" />
                                        <TextBlock Grid.Column="2" Grid.Row="5" Grid.ColumnSpan="3" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding LoginContact.Memo}" />
                                </Grid>
                        </Border>
                </Grid>

                <Grid Grid.Row="3" Margin="12">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                                <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Border Grid.Column="0" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="书籍" />

                                        <TextBlock Grid.Column="0" Grid.Row="3" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="3" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding LoginContact.TravelFlows.Count}" />
                                        <Button Grid.Column="2" Grid.Row="3" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Click="TravelFlowButton_Click" />
                                </Grid>
                        </Border>

                        <Border Grid.Column="1" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="课程" />

                                        <TextBlock Grid.Column="0" Grid.Row="3" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="3" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding Contact.BookFlows.Count}" />
                                        <Button Grid.Column="2" Grid.Row="3" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Click="BookFlowButton_Click"/>
                                </Grid>
                        </Border>


                        <Border Grid.Column="2" Style="{StaticResource BorderStyle}">
                                <Grid Margin="6">
                                        <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition />
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition />
                                                <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>

                                        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="反馈" />

                                        <TextBlock Grid.Column="0" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="待处理" />
                                        <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding LoginContact.UnCompleteFeedbackFlows.Count}" />

                                        <TextBlock Grid.Column="0" Grid.Row="3" 
                                           HorizontalAlignment="Right"
                                           Text="共计" />
                                        <TextBlock Grid.Column="1" Grid.Row="3" 
                                           HorizontalAlignment="Left" 
                                           Text="{Binding Contact.FeedbackFlows.Count}" />
                                        <Button Grid.Column="2" Grid.Row="3" Style="{DynamicResource ButtonStyle}"
                                           Content="进入" Click="FeedbackFlowButton_Click"/>
                                </Grid>
                        </Border>

                        
                        
                </Grid>
        </Grid>
</Page>